<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.util.*"%>

<%
DBO db=new DBO();
request.setCharacterEncoding("utf-8");
ResultSet rs=null;
String sql="";
int row=1;
//	String keyid=(String)request.getParameter("keyid"); 
		String keyid =(String)request.getParameter("keyid");
String kc=(String)request.getParameter("kc");//课程
String js=(String)request.getParameter("js");//介绍
String xf=(String)request.getParameter("xf");//学分

/*
.课程修改后台页面


*/	
 
sql="update kecheng set kc='"+kc+"',js='"+js+"',xf='"+xf+"' where kcid='"+keyid+"'";

 //int row=0;

try{
		
			
		 row=db.update(sql);
}catch(Exception e){
System.out.println(e.toString());}
if(row==1){
out.println("<script>");
out.println("alert('操作成功');");
out.println("window.location='kechenglist.jsp'");
out.println("</script>");
}else{
out.println("<script>");
out.println("alert('操作失败');");
out.println("window.location='kechenglist.jsp'");
out.println("</script>");
}
db.close();
%>

